← Back to issue list

Unicode non-ascii characters in channel specification cause a 500 response from the store

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1828600
Type
issue
State
open
Author
~matiasb
Labels
Created
2019-05-10 15:25:43.048468+00:00
Updated
2019-05-15 20:38:55.766339+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

snapcraft release hello-roadmr-unicrash-1 11 stable/#🐍 this results in a 500 response from the store with this traceback: DataError: invalid byte sequence for encoding "UTF8": 0xed 0xb3 0xb0 File "piston/resource.py", line 192, in __call__ result = meth(request, *args, **kwargs) File "devportal/api/helpers.py", line 319, in wrapper return orig_func(self, request, *args, **kwargs) File "devportal/api/v1/handlers.py", line 920, in create _channel = get_or_create_channel(_name, snap, create=True) File "devportal/models/__init__.py", line 178, in get_or_create_channel risk = Risk.objects.get(name__in=channel_split) File "django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "django/db/models/query.py", line 374, in get num = len(clone) File "django/db/models/query.py", line 232, in __len__ self._fetch_all() File "django/db/models/query.py", line 1118, in _fetch_all self._result_cache = list(self._iterable_class(self)) File "django/db/models/query.py", line 53, in __iter__ results = compiler.execute_sql(chunked_fetch=self.chunked_fetch) File "django/db/models/sql/compiler.py", line 899, in execute_sql raise original_exception

Evaluation history

No evaluation history available.